Objects Reference

class param_desc

Definition

class param_desc
{
public:
    char name[64];
    int type;
    void *data;
   
    char *get_string();
    void set_string(char *str);
};

Data Members

Member Type Description
name char [] the parameter name
type int the parameter type
data void * pointer to the parameter data

Methods

get_string, set_string

Remarks

This class holds information on Fly3D plug-in object parameters. Each class defined in a Fly3D plug-in (derived from bsp_object) can have any number of parameters. Each parameter must have an associated param_desc class describing its data.

The types of parameters available are:

>255 - parameter is a pointer to a class in the stock obejcts list that has this type id
<255 - parameter is a pointer to a class in the active objects list that has this type id

Type

Description

Data type

Data size (sizeof)

æaÆ

angle

float

4

æiÆ

integer

int

4

æf æ

floating point

float

4

ævÆ

float vector (x,y,z)

vector

12

æcÆ

float color (r,g,b)

vector

12

æbÆ

Bezier curve

bezier_curve *

4

'h'

Bezier patch

bezier_patch *

4

æ3Æ

3ds mesh model

mesh *

4

æmÆ

fao animate mesh

anim_mesh *

4

æwÆ

wav sound object

sound *

4

æpÆ

picture file

int

4

æoÆ

stock object

bsp_object *

4

ædÆ

active object

bsp_object *

4

See Also

class_desc, flydll, flydllgroup